* =======-===================================================================== *
* PROJECT:		MAKING COUNTRIES SMALL: THE NATIONALIZATION OF DISTRICTS
* JOURNAL: 		Political Science Research Methods
* OBJECTIVE		Replicating resuls. state-level analysis
* AUTHOR: 		Ignacio Lago
* DATE:			2022-12-27
* ============================================================================ *

clear all
global beg_path `"C:\XXX\XXX\XXX\Lago_Replication_state_level\"' // Set the path of the working directory here 
set more off

*Load dataset
use"state-level_TableA6.dta"
reg ENP_cst c.distance00  vv1million   popmillion if yr<1850&dummies!=48&dummies!=49, cluster(dummies)
estimates store m1, title(1850)
reg ENP_cst c.distance00  vv1million   popmillion if yr<1875&dummies!=48&dummies!=49, cluster(dummies)
estimates store m2, title(1875)
reg ENP_cst c.distance00  vv1million   popmillion if yr<1900&dummies!=48&dummies!=49, cluster(dummies)
estimates store m3, title(1900)
reg ENP_cst c.distance00  vv1million   popmillion if yr<1925&dummies!=48&dummies!=49, cluster(dummies)
estimates store m4, title(1925)
reg ENP_cst c.distance00  vv1million   popmillion if yr<1950&dummies!=48&dummies!=49, cluster(dummies)
estimates store m5, title(1950)
reg ENP_cst c.distance00  vv1million   popmillion if yr<1975&dummies!=48&dummies!=49, cluster(dummies)
estimates store m6, title(1975)
reg ENP_cst c.distance00  vv1million   popmillion if yr<2000&dummies!=48&dummies!=49, cluster(dummies)
estimates store m7, title(2000)
reg ENP_cst c.distance00  vv1million   popmillion if yr<2020&dummies!=48&dummies!=49, cluster(dummies)
estimates store m8, title(2016)
estout m1 m2 m3 m4 m5 m6 m7 m8 using TableA6_State_Level_Analysis2.text, cells(b(star fmt(4)) se(par fmt(5)))legend label varlabels(_cons Constant)
